#!/usr/bin/python


import requests
import json


url='https://ipinfo.io/'

res=requests.get(url)

to=json.loads(res.text)
js=json.dumps(to,indent=4)

f=open('file.json','r')
fs=f.read()

fss=json.loads(fs)

fss["ip"]="0.0.0.0"

jsw=json.dumps(fss,indent=4)

file=open('file.json','w')
file.write(jsw)




print(jsw)